//
// Created by SDSC\202100300261 on 23-11-13.
//

#ifndef COMPILER_MYEXCEPTION_H
#define COMPILER_MYEXCEPTION_H


#include <exception>
#include <string>

class MyException : public std::exception {
public:
    explicit MyException(const std::string& message) : message_(message) {}

    const char* what() const noexcept override
    {
        return message_.c_str();
    }
private:
    std::string message_;
};


#endif //COMPILER_MYEXCEPTION_H
